home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK2.toast / Development Kits (Disc 2) / QuickDraw GX / Programming Stuff / Sample Code / Printing Samples / Extensions… / Additions ƒ / Additions.make < prev    next >
Encoding:
Text File  |  1995-04-10  |  6.2 KB  |  185 lines  |  [TEXT/MPS ]

  1. # ------------------------------------------------------------------------------
  2. #
  3. #    FILENAME
  4. #        Additions.make
  5. #
  6. #    DESCRIPTION
  7. #        This is the make file for the Additions printing extension.
  8. #
  9. #    COPYRIGHT
  10. #        Copyright Apple Computer, Inc. 1991-1994
  11. #        All rights reserved. 
  12. #    
  13. #    MODIFICATION HISTORY
  14. #        05/15/91            ALA            Initial implementation
  15. #        10/22/92            Duano        Added changes for version control
  16. #        12/22/93            dmh            Made makefile self-supporting for b3.
  17. #         8/26/94            dmh            Finalized for the SDK.
  18. #
  19. #-------------------------------------------------------------------------------
  20.  
  21. # Change the following identifiers to point to your
  22. # GX interface & library files.
  23.  
  24. GXPrintingInterfaces    =    {CIncludes}
  25. GXGraphicsInterfaces    =    {GXPrintingInterfaces}
  26. GXPrintingLibs            =    Backwash:QuickDraw™ GX Libraries:printing libraries:
  27. GXGraphicsLibs            =    Backwash:QuickDraw™ GX Libraries:graphics libraries:
  28.  
  29.  
  30. #========== Directories Containing Source and Object Files ==========
  31.  
  32. SourceFiles        = 
  33. Objects            = :Objects:
  34. OutputDir        =
  35.  
  36. #========== Compile, Assemble, and Link Options ==========
  37.  
  38. AsmOptions        = -sym off -i {GXPrintingInterfaces} -case obj
  39. CompileOptions    = -mbg full -sym off  -d applec -opt full -b2 -r -i {GXPrintingInterfaces} -i {GXGraphicsInterfaces}
  40. RezOptions        = -i {GXPrintingInterfaces} -d SystemSevenOrLater=1
  41.  
  42. #========== Files to Link With ==========
  43.  
  44. CObjs            =    "{Objects}Additions.a.o"                 ∂
  45.                     "{Objects}Additions.c.o"                ∂
  46.                     "{Objects}InitializeMessage.c.o"        ∂
  47.                     "{Objects}DespoolPageMessage.c.o"        ∂
  48.                     "{Objects}FinishJobMessage.c.o"            ∂
  49.                     "{Objects}PrintDialogMessage.c.o"        ∂
  50.                     "{Objects}RenderPageMessage.c.o"        ∂
  51.                     "{Objects}StartJobMessage.c.o"            ∂
  52.                     "{Objects}Utilities.c.o"                ∂
  53.                     ∂
  54.                     "{Objects}picture library.c.o"            ∂
  55.                     "{Objects}font library.c.o"                ∂
  56.                     "{Objects}roundRect library.c.o"        ∂
  57.                     "{Objects}shape library.c.o"            ∂
  58.                     ∂
  59.                     {CLibraries}StdCLib.o                    ∂
  60.                     {Libraries}Runtime.o                    ∂
  61.                     {Libraries}Interface.o
  62.  
  63. #========== Compile Build Statements - font library.c ==========
  64.  
  65. "{Objects}font library.c.o"    ƒ    "{GXGraphicsLibs}font library.c"
  66.     Echo "Compiling font library.c"
  67.     C {CompileOptions} "{GXGraphicsLibs}font library.c" ∂
  68.       -o "{Objects}font library.c.o"
  69.  
  70. #========== Compile Build Statements - roundRect library.c.c ==========
  71.  
  72. "{Objects}roundRect library.c.o"    ƒ    "{GXGraphicsLibs}roundRect library.c"
  73.     Echo "Compiling roundRect library.c"
  74.     C {CompileOptions} "{GXGraphicsLibs}roundRect library.c"  ∂
  75.       -o "{Objects}roundRect library.c.o"
  76.  
  77. #========== Compile Build Statements - shape library.c ==========
  78.  
  79. "{Objects}shape library.c.o"    ƒ    "{GXGraphicsLibs}shape library.c"
  80.     Echo "Compiling shape library.c"
  81.     C {CompileOptions} "{GXGraphicsLibs}shape library.c"  ∂
  82.       -o "{Objects}shape library.c.o"
  83.  
  84. #=== Compile Build Statements - picture library.c ====
  85.  
  86. "{Objects}picture library.c.o"    ƒ "{GXGraphicsLibs}picture library.c"
  87.     Echo "Compiling picture library.c"
  88.     C {CompileOptions} "{GXGraphicsLibs}picture library.c" ∂
  89.       -o "{Objects}picture library.c.o"
  90.  
  91. #========== Assembly Build Statements - Additions.a ==========
  92.  
  93. {Objects}Additions.a.o    ƒ    {SourceFiles}Additions.a
  94.     Echo "Assembling Additions.a"
  95.     Asm {AsmOptions}  {SourceFiles}Additions.a -o {Objects}Additions.a.o
  96.  
  97. #========== Compile Build Statements - Additions.c ==========
  98.  
  99. {Objects}Additions.c.o    ƒ    {SourceFiles}Additions.c            ∂
  100.                                     {SourceFiles}Additions.h    ∂
  101.                                     {SourceFiles}Utilities.h
  102.     Echo "Compiling Additions.c"
  103.     C {CompileOptions} {SourceFiles}Additions.c  -o {Objects}Additions.c.o
  104.  
  105.  
  106. #========== Compile Build Statements - InitializeMessage.c ==========
  107.  
  108. {Objects}InitializeMessage.c.o    ƒ    {SourceFiles}InitializeMessage.c    ∂
  109.                                     {SourceFiles}Additions.h
  110.     Echo "Compiling InitializeMessage.c"
  111.     C {CompileOptions} {SourceFiles}InitializeMessage.c  -o {Objects}InitializeMessage.c.o
  112.  
  113.  
  114. #========== Compile Build Statements - DespoolPageMessage.c ==========
  115.  
  116. {Objects}DespoolPageMessage.c.o    ƒ    {SourceFiles}DespoolPageMessage.c    ∂
  117.                                     {SourceFiles}Additions.h            ∂
  118.                                     {SourceFiles}Utilities.h        
  119.     Echo "Compiling DespoolPageMessage.c"
  120.     C {CompileOptions} {SourceFiles}DespoolPageMessage.c  -o {Objects}DespoolPageMessage.c.o
  121.  
  122.  
  123. #========== Compile Build Statements - FinishJobMessage.c ==========
  124.  
  125. {Objects}FinishJobMessage.c.o    ƒ    {SourceFiles}FinishJobMessage.c        ∂
  126.                                     {SourceFiles}Additions.h            ∂
  127.                                     {SourceFiles}Utilities.h        
  128.     Echo "Compiling FinishJobMessage.c"
  129.     C {CompileOptions} {SourceFiles}FinishJobMessage.c  -o {Objects}FinishJobMessage.c.o
  130.  
  131.  
  132. #========== Compile Build Statements - PrintDialogMessage.c ==========
  133.  
  134. {Objects}PrintDialogMessage.c.o    ƒ    {SourceFiles}PrintDialogMessage.c    ∂
  135.                                     {SourceFiles}Additions.h            ∂
  136.                                     {SourceFiles}Utilities.h        
  137.     Echo "Compiling PrintDialogMessage.c"
  138.     C {CompileOptions} {SourceFiles}PrintDialogMessage.c  -o {Objects}PrintDialogMessage.c.o
  139.  
  140.  
  141. #========== Compile Build Statements - RenderPageMessage.c ==========
  142.  
  143. {Objects}RenderPageMessage.c.o    ƒ    {SourceFiles}RenderPageMessage.c    ∂
  144.                                     {SourceFiles}Additions.h            ∂
  145.                                     {SourceFiles}Utilities.h        
  146.     Echo "Compiling RenderPageMessage.c"
  147.     C {CompileOptions} {SourceFiles}RenderPageMessage.c  -o {Objects}RenderPageMessage.c.o
  148.  
  149.  
  150. #========== Compile Build Statements - StartJobMessage.c ==========
  151.  
  152. {Objects}StartJobMessage.c.o    ƒ    {SourceFiles}StartJobMessage.c    ∂
  153.                                     {SourceFiles}Additions.h        ∂
  154.                                     {SourceFiles}Utilities.h        
  155.     Echo "Compiling StartJobMessage.c"
  156.     C {CompileOptions} {SourceFiles}StartJobMessage.c  -o {Objects}StartJobMessage.c.o
  157.  
  158.  
  159. #========== Compile Build Statements - Utilities.c ==========
  160.  
  161. {Objects}Utilities.c.o    ƒ    {SourceFiles}Utilities.c        ∂
  162.                             {SourceFiles}Additions.h        ∂
  163.                             {SourceFiles}Additions.h    
  164.     Echo "Compiling Utilities.c"
  165.     C {CompileOptions} {SourceFiles}Utilities.c  -o {Objects}Utilities.c.o
  166.  
  167.  
  168. #========== Link and Rez Build Statements ==========
  169.  
  170. {OutputDir}Additions ƒ        {CObjs}                            ∂
  171.                                     {SourceFiles}Additions.r        ∂
  172.                                     {SourceFiles}Additions.make
  173.     Echo "Linking Additions Printing Extension"
  174.     Link    -ra =resSysHeap,resPurgeable ∂
  175.             -t 'pext'            ∂
  176.             -c 'addi'            ∂
  177.             -rt pext=0            ∂
  178.             -sg Additions        ∂
  179.             -m AdditionsIntf    ∂
  180.             {CObjs}                ∂
  181.             -o {OutputDir}Additions;
  182.     SetFile {OutputDir}Additions -a iB;
  183.     Echo "Rezzing Additions Printing Extension"
  184.     Rez {RezOptions} -rd -o {OutputDir}Additions {SourceFiles}Additions.r -append
  185.